package log

import (
	bootstrap "github.com/asticode/go-astilectron-bootstrap"
	"go_gui_basic_binding/frame/appOptions"
)

func Error(e error) {
	_ = bootstrap.SendMessage(appOptions.W, "go_error", e.Error())
}

func Log(str string) {
	_ = bootstrap.SendMessage(appOptions.W, "go_log", str)
}